<?php
/**
 * Created by PhpStorm.
 * User: wen
 * Date: 2017/6/21
 * Time: 11:41
 */
namespace Biz;
use Think\Exception;

class User extends \Base\BaseBiz{
    /*
     * 使用uid 查找用户信息
     */
    public function getUidById($id){
        if(empty($id)){
            return \Orm\User\UserClass::ID_NULL;
        }
        try{
            $user = new \Orm\User\UserClass();
            $user ->loadById($id);
            if ($user) {
                return $user;
            }
            return array();
        }catch (\Exception $e){
            throw new \Exception($e->getMessage());
        }
    }
}